<template>
  <div class="container">
    <div class="center">
      <div class="img-right">
        <img :src="ServiceProductSecondData.one.imgUrl" alt="imgUrl" />
      </div>
      <div class="introduce right">
        <div class="number">01</div>
        <h2>{{ ServiceProductSecondData.one.title }}</h2>
        <p>
          {{ ServiceProductSecondData.one.content }}
        </p>
      </div>
    </div>
    <div class="center">
      <div class="introduce left">
        <div class="number">02</div>
        <h2>{{ ServiceProductSecondData.two.title }}</h2>
        <p>
          {{ ServiceProductSecondData.two.content }}
        </p>
      </div>
      <div class="img-left">
        <img :src="ServiceProductSecondData.two.imgUrl" alt="imgUrl" />
      </div>
    </div>
    <div class="center">
      <div class="img-right">
        <img :src="ServiceProductSecondData.three.imgUrl" alt="imgUrl" />
      </div>
      <div class="introduce right">
        <div class="number">03</div>
        <h2>{{ ServiceProductSecondData.three.title }}</h2>
        <p>
          {{ ServiceProductSecondData.three.content }}
        </p>
      </div>
    </div>
    <div class="center">
      <div class="introduce left">
        <div class="number">04</div>
        <h2>{{ ServiceProductSecondData.four.title }}</h2>
        <p>
          {{ ServiceProductSecondData.four.content }}
        </p>
      </div>
      <div class="img-left">
        <img :src="ServiceProductSecondData.four.imgUrl" alt="imgUrl" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "ServiceProductSecond",
  props: { ServiceProductSecondData: Object },
  data() {
    return {};
  },
};
</script>

<style lang="less" scoped>
.container {
  width: 100%;
  .center {
    margin: 230px 0;
    display: flex;
    justify-content: center;
  }
  img {
    width: 100%;
    height: 100%;
  }
  .introduce {
    position: relative;
    width: 600px;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 0 10px #b9b9b9;
    h2 {
      margin: 20px 0;
      color: #31c46c;
      font-size: 30px;
    }
    p {
      font-size: 14px;
      color: #8c8c8cff;
      font-weight: 400;
      letter-spacing: 3.6px;
      line-height: 1.8;
    }
  }
  .right {
    margin-bottom: 100px;
    padding: 50px 20px 0 150px;
    box-sizing: border-box;
    .number {
      position: absolute;
      top: 30px;
      right: 50px;
      font-size: 50px;
      font-weight: 700;
      color: #e8f1ec;
    }
  }
  .img-right {
    z-index: 2;
    transform: translate(100px, 100px);
    width: 600px;
    height: 300px;
    border-radius: 10px;
    box-shadow: -5px 8px 10px #b9b9b9;
    overflow: hidden;
    background-color: green;
  }
  .left {
    padding: 50px 150px 0 50px;
    box-sizing: border-box;
    .number {
      position: absolute;
      top: 30px;
      right: 200px;
      font-size: 50px;
      font-weight: 700;
      color: #e8f1ec;
    }
  }
  .img-left {
    z-index: 2;
    transform: translate(-100px, -50px);
    width: 600px;
    height: 300px;
    border-radius: 10px;
    box-shadow: -5px 8px 10px #b9b9b9;
    overflow: hidden;
    background-color: green;
  }
}
</style>
